broadway: Fix texture hash function
authorAlexander Larsson <alexl@redhat.com>
Thu, 30 Nov 2017 16:30:27 +0000 (17:30 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 30 Nov 2017 20:57:42 +0000 (21:57 +0100)
gdk/broadway/gdkdisplay-broadway.c

index 4d1b0a42627b29c34cfa2a55304606f633dd9609..528d33c6aa949906503665f4357df894606ec883 100644 (file)
@@ -111,8 +111,8 @@ gdk_texture_hash (GdkTexture *self)
   data = cairo_image_surface_get_data (surface);
   stride = cairo_image_surface_get_stride (surface);
 
-  width = MAX (self->width, 4);
-  height = MAX (self->height, 4);
+  width = MIN (self->width, 4);
+  height = MIN (self->height, 4);
 
   sum = 0;
   for (y = 0; y < height; y++, data += stride)